package com.hack.hackathon.vo;

/**
 * Created by Wang Yong on 16-10-29.
 */
public class PostDataVO{
    private String personId;

    private String url;

    private String male;

    private Float age;

    private Double smile;

    private String glasses;

    private Integer personCount;

    private OrderVO order;

    public String getPersonId(){
        if(personId == null){
            personId = "";
        }
        return personId;
    }

    public void setPersonId(String personId){
        this.personId = personId;
    }

    public String getUrl(){
        if(url == null){
            url = "";
        }
        return url;
    }

    public void setUrl(String url){
        this.url = url;
    }

    public String getMale(){
        if(male == null){
            male = "";
        }
        return male;
    }

    public void setMale(String male){
        this.male = male;
    }

    public Float getAge(){
        return age;
    }

    public void setAge(Float age){
        this.age = age;
    }

    public Double getSmile(){
        if(smile == null){
            smile = 0D;
        }
        return smile;
    }

    public void setSmile(Double smile){
        this.smile = smile;
    }

    public String getGlasses(){
        return glasses;
    }

    public void setGlasses(String glasses){
        this.glasses = glasses;
    }

    public Integer getPersonCount(){
        if(personCount == null){
            personCount = 0;
        }else {
            personCount--;
        }
        return personCount;
    }

    public void setPersonCount(Integer personCount){
        this.personCount = personCount;
    }

    public OrderVO getOrder(){
        if(order == null){
            order = new OrderVO();
        }
        return order;
    }

    public void setOrder(OrderVO order){
        this.order = order;
    }
}
